package com.aifeng.view

import android.view.View
import com.aifeng.hassan_food.R
import com.aifeng.model.CommonData
import com.zhpan.bannerview.BaseBannerAdapter

class ImageResourceAdapter : BaseBannerAdapter<CommonData, ImageResourceViewHolder>() {

    override fun onBind(
        holder: ImageResourceViewHolder,
        data: CommonData?,
        position: Int,
        pageSize: Int
    ) {
        holder.bindData(data!!, position, pageSize)
    }

    override fun createViewHolder(itemView: View, viewType: Int) = ImageResourceViewHolder(itemView)

    override fun getLayoutId(viewType: Int) = R.layout.item_banner_img

}